package core;

public class Var {
    public String name;
    public double value;
    public int sigFig;
    public boolean constant;

    public Var(String name, double value, int sigFig, boolean constant) {
        this.name = name;
        this.value = value;
        this.sigFig = sigFig;
        this.constant = constant;
    }

    public Var(String name, double value, int sigFig) {
        this.name = name;
        this.value = value;
        this.sigFig = sigFig;
        this.constant = false;
    }

    @Override
    public String toString() {
        return name + " " + value;
    }

}
